package com.mxb.sqlsession;

import com.mxb.model.Configuration;

/**
 * SqlSessionFactory实现类
 *
 * @Author: MaXiaobing
 * @Date: 2021/3/9 17:49
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
